import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: () => import('@/components/Layout/SysLayout/SysLayout.vue'),
      children: [{
        path: '/',
        name: 'Home',
        component: () => import('@/pages/HomePage/HomePage.vue'),
      }, {
        path: '/Dev',
        name: 'Dev',
        component: () => import('@/pages/DevPage/DevPage.vue'),
      }, {
        path: '/Safe',
        name: 'Safe',
        component: () => import('@/pages/SafePage/SafePage.vue'),
      }, {
        path: '/Topo',
        name: 'Topo',
        component: () => import('@/pages/TopoPage/TopoPage.vue'),
      }]
    },
    {
      path: '/RoomInfo',
      name: 'RoomInfo',
      component: () => import('@/InfoCard/RoomInfo/RoomInfo.vue'),
    },
    {
      path: '/WmfInfo',
      name: 'WmfInfo',
      component: () => import('@/InfoCard/WmfInfo/WmfInfo.vue'),
    }
  ]
})

export default router
